import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { type App } from "vue";
// 自定义图标组件
import SvgIcon from "@/components/svgIcon/index.vue";
export function useIcon(app: App) {
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(`ele-${key}`, component);
  }
  app.component("SvgIcon", SvgIcon); // <svg-icon /> <SvgIcon/>
}
